package cn.net.xyan.easy.spring.jdbc;

import cn.net.xyan.easy.spring.core.config.AbstractAutoConfig;
import cn.net.xyan.easy.spring.core.config.IAutoConfig;
import cn.net.xyan.easy.spring.core.config.IAutoConfigManager;
import cn.net.xyan.easy.spring.jdbc.config.JDBCConfiguration;
import org.springframework.core.annotation.Order;

import static cn.net.xyan.easy.spring.core.config.AbstractAutoConfig.ApplicationContextEnum.*;

/**
 * Created by xiashenpin on 16/1/16.
 */
@Order(value = EasyJDBC.ORDER)
public class EasyJDBC extends AbstractAutoConfig {
    static final int ORDER = IAutoConfig.RootOrder+10;

    @Override
    protected void configManager() {
        registerApplicationConfigClass(ROOT,JDBCConfiguration.class);
        setupKey(IAutoConfigManager.DBConfigFileKey);
    }

    @Override
    protected void afterConfigManager() {

    }

}
